﻿using MediatR;
using ProduceBasicData.Api.DTO;
using ProduceBasicData.ErrorCode;

namespace ProduceBasicData.Api.Application.Command.Material.BOM
{
    public class SerachBOMCommand : IRequest<ApiPaging<BOMDTO>>
    {
        public int Index { get; set; } = 1;

        public int Size { get; set; } = 100;

        /// <summary>
        /// BOM名称
        /// </summary>
        public string? BOMName { get; set; }

        /// <summary>
        /// BOM版本
        /// </summary>
        public string? BomVersion { get; set; }

        /// <summary>
        /// BOM类型
        /// </summary>
        public string? BomType { get; set; }

        /// <summary>
        /// 工序ID
        /// </summary>
        public int? ProcessId { get; set; }

        /// <summary>
        /// 是否只查询顶级BOM（用于树形结构显示）
        /// </summary>
        public bool OnlyTopLevel { get; set; } = false;
    }
}
